import type { App } from 'vue'

import { http } from '@/api/http'
import api from '@/api/api'

export function registerGlobVariable(app: App) {
    app.config.globalProperties.$api = api
    app.config.globalProperties.$http = http
    app.config.globalProperties.$get = http.get
    app.config.globalProperties.$post = http.post
}